import request from "@/utils/request";

// 查询考核部门列表
export function listBizAssessToDept(query) {
  return request({
    url: "/biz/bizAssessToDept/list",
    method: "get",
    params: query,
  });
}
// 查询考核部门列表
export function assessDetplist(query) {
  return request({
    url: "/biz/bizAssessToDept/assessDetplist",
    method: "get",
    params: query,
  });
}

// 查询考核部门详细
export function getBizAssessToDept(id) {
  return request({
    url: "/biz/bizAssessToDept/" + id,
    method: "get",
  });
}

// 新增考核部门
export function addBizAssessToDept(data) {
  return request({
    url: "/biz/bizAssessToDept",
    method: "post",
    data: data,
  });
}

// 修改考核部门
export function updateBizAssessToDept(data) {
  return request({
    url: "/biz/bizAssessToDept",
    method: "put",
    data: data,
  });
}

// 删除考核部门
export function delBizAssessToDept(id) {
  return request({
    url: "/biz/bizAssessToDept/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizAssessToDept/findMaxSort",
    method: "get",
  });
}
// 导出考核部门
export function exportBizAssessToDept(query) {
  return request({
    url: "/biz/bizAssessToDept/export",
    method: "get",
    params: query,
  });
}
